/*
 * 用户基础类
 * @author: huangzong
 */
import C from '@/common/common.js'

class Rule {
  /*
   * 打开基础设置页面
   */
  async openAddRule (row) {
    return await C.openBrowserWindow('/addRule', row, {
      transparent: true,
      frame: false,
      // openDevTools: true,
      width: 390,
      height: 290,
      useSpa: false,
      spaModel: 'shop'
    })
  }

  /*
   * 新增管理员（暂时放在这里面）
   */
  async openAddAdmin (row) {
    return await C.openBrowserWindow('/addAdmin', row, {
      transparent: true,
      frame: false,
      // openDevTools: true,
      width: 390,
      height: 440,
      useSpa: false,
      spaModel: 'shop'
    })
  }
}

export default new Rule()
